import type {ResponseData,} from "../../common/type";


//定义获取日志分页列表
export interface DatasourceListReponseData extends ResponseData{
    result:{
        data:DatasourceList,
        page:number,
        items:number,
        pageSize:number,
        currentPage:number,
        pageCount:number,
    }
}

export interface DatasourceList {
    datasourceList: DatasourceInfo[]
}

export interface DatasourceInfo{
    "uuid": string,
    "dbType": string,
    "connName": string,
    "environment": string,
    "connUrl": string,
    "username": string,
    "password": string,
    "datasource": string,
    "isOk": boolean,
    "isOkStr": string,
    "createTime": string
}

export interface DatasourceAddOrUpdateForm {
    uuid?: string,
    "dbType": string,
    "connName": string,
    "environment": string,
    "datasource": string,
    "connUrl": string,
    "username": string,
    "password": string
}

export interface DocGenForm {
    address: string,
    "docType": number,
    "ignorePrefixList": string[],
    "ignoreSuffixList": string[],
    "ignoreTableNameList": string[],
    "uuid": string
}
//
export interface DatasourceInfoReponseData extends ResponseData{
    result:{
        "uuid": string,
        "dbType": string,
        "connName": string,
        "environment": string,
        "connUrl": string,
        "username": string,
        "password": string,
        "datasource": string,
        "isOk": boolean,
        "createTime": string
    }
}
